/**
 * Created by Administrator on 2017/7/24.
 */

import React,{Component} from 'react'
import {View,Text,Modal,Alert} from 'react-native'

export default  class DialogUtil extends Component{


    constructor(props){
        super(props)
        state = {
            visible: this.props.isShow,
            transparent: true,
        }
    }

    render() {
        return (

                <Modal
                    visible={this.props.isShow}
                    transparent={true}>
                    <View
                        style={{flex:1,justifyContent:'center',alignItems:'center',backgroundColor:'rgba(0, 0, 0, 0.3)'}}>
                        <View style={{height:200,width:275,backgroundColor:'white',borderRadius:10}}>
                            <Text  onPress={()=>{this.props.dismiss()}}>关闭</Text>
                            <Text  >不透明</Text>
                        </View>
                    </View>
                </Modal>
        );
    }

    static _dialogShow(){
        alert('ssss')
    }

    _dialogShows(){
        this.setState({visible:true})
    }

    static _dialogDismiss(){
        this.setState({visible:false})
    }
}